# -*- coding:utf-8 -*-
import json 
from pymongo import MongoClient,errors

from sqlalchemy import Column, String, create_engine
from sqlalchemy.orm import sessionmaker
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.sql import text


import datetime 

DATABASE_URI="mysql+pymysql://root:123456@192.168.0.103:3307/app?charset=utf8"

# 初始化数据库连接:
engine = create_engine(DATABASE_URI,encoding='utf-8')
# 创建DBSession类型:
DBSession = sessionmaker(bind=engine)

